import { GETMOVIELIST } from "../constants/movieConst";
const init={
    movieList:[]
}
export default function movieReducer(prevState=init,action) {
    const {type,data}=action
        switch (type) {
            case GETMOVIELIST:
                return {...init,movieList:data}
        }
    return prevState
}